package composite.example;

/**
 * 人力资源部
 */
public class HRDepartment extends Company {

    public HRDepartment () {

    }

    public HRDepartment(String name) {
        this.name = name;
    }

    @Override
    public void add(Company c) {

    }

    @Override
    public void remove(Company c) {

    }

    @Override
    public void display(int depth) {
        System.out.println(depth + "-----" + name);
    }

    @Override
    public void lineOfDuty() {
        System.out.println(name + "  员工招聘培训管理");
    }
}
